import * as types from './mutation-types'

const mutations = {
  [types.SET_SEARCH_VAL](state, newVal) {
    state.searchVal = newVal
  },
  [types.SET_IS_LOGIN](state, newVal) {
    state.isLogin = newVal
  },
  [types.SET_IS_MODAL](state, newVal) {
    state.isModal = newVal
  },
  [types.SET_HINT](state, newVal) {
    state.hint = newVal
  },
  [types.SET_CAR_NUMBER](state, newVal) {
    state.carNumber = newVal
  },
  [types.SET_OPEN_ID](state, newVal) {
    state.openId = newVal
  },
}
export default mutations
